aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/app/(main)/goals/edit/[id]
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/(main)/goals/edit/[id]')
-rw-r--r--frontend/src/app/(main)/goals/edit/[id]/page.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/frontend/src/app/(main)/goals/edit/[id]/page.tsx b/frontend/src/app/(main)/goals/edit/[id]/page.tsx
new file mode 100644
index 0000000..4c02bb2
--- /dev/null
+++ b/frontend/src/app/(main)/goals/edit/[id]/page.tsx
@@ -0,0 +1,18 @@
+import { Metadata } from "next";
+import { GoalForm } from "../../components/goal-form";
+import { use } from "react";
+
+export const metadata: Metadata = {
+ title: "Edit Goal | Finance",
+ description: "Edit your financial goal",
+};
+
+export default function EditGoalPage({ params }: { params: { id: string } }) {
+ const unwrappedParams = use(params);
+ return (
+ <div className="container mx-auto py-8">
+ <h1 className="text-2xl font-bold tracking-tight mb-6">Edit Goal</h1>
+ <GoalForm goalId={parseInt(unwrappedParams.id)} />
+ </div>
+ );
+} \ No newline at end of file